package com.haircut.sys.vo.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Setter
@Getter
public class UserOnlyVo {


    /**
     * 手机号码
     */
    @ApiModelProperty("用户手机号码")
    @NotNull(message = "手机号码必须填写")
    @Length(min = 5,max = 20,message = "手机号码范围[5~20]")
    private String userMobile;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实名称")
    @NotNull(message = "真实姓名必须填写")
    @Length(min = 1,max = 50,message = "真实姓名范围为[1~40]个字符")
    private String realName;

    /**
     * 性别(1、男 2、女)
     */
    @ApiModelProperty("用户性别(1、男 2、女)")
    @NotNull(message = "用户性别")
    @Range(min = 1,max = 2,message = "用户性别范围[1~2]")
    private Integer sex;


}
